package com.ruoyi.youtian.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 触发预警记录对象 t_early_warning_record
 * 
 * @author ruoyi
 * @date 2022-10-12
 */
@Data
public class TEarlyWarningRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 场景编号 */
    @Excel(name = "场景编号")
    private Long sceneId;

    /** 预警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warningTime;

    /** 预警说明 */
    @Excel(name = "预警说明")
    private String warningRemark;

    /** 触发时报警的值 几率值 */
    @Excel(name = "触发时报警的值 几率值")
    private String alarmValue;

    /** 预警方式 */
    @Excel(name = "预警方式")
    private String warningType;

    private String warningCode;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSceneId(Long sceneId) 
    {
        this.sceneId = sceneId;
    }

    public Long getSceneId() 
    {
        return sceneId;
    }
    public void setWarningTime(Date warningTime) 
    {
        this.warningTime = warningTime;
    }

    public Date getWarningTime() 
    {
        return warningTime;
    }
    public void setWarningRemark(String warningRemark) 
    {
        this.warningRemark = warningRemark;
    }

    public String getWarningRemark() 
    {
        return warningRemark;
    }
    public void setAlarmValue(String alarmValue) 
    {
        this.alarmValue = alarmValue;
    }

    public String getAlarmValue() 
    {
        return alarmValue;
    }
    public void setWarningType(String warningType) 
    {
        this.warningType = warningType;
    }

    public String getWarningType() 
    {
        return warningType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sceneId", getSceneId())
            .append("warningTime", getWarningTime())
            .append("warningRemark", getWarningRemark())
            .append("alarmValue", getAlarmValue())
            .append("warningType", getWarningType())
            .toString();
    }
}
